package com.asia5b.a5mall.middleware.model.order

import com.asia5b.a5mall.middleware.model.base.BaseModel
import com.asia5b.a5mall.middleware.model.bean.GlobalState

/**
 * Created by zhangyuncai on 2019/12/21.
 */
data class OrderPayModel(
        //交易号
        var sn: String = "",

        var orderSn: String = "",

        var payPrice: Double = 0.0,

        var tradeType: TradeType = TradeType.Order,

        var payId: String = "",

        var client: String = "NATIVE",

        var paymode: String = "normal",

        var paymentType: Int = GlobalState.PAY_ONLINE
) : BaseModel()


enum class TradeType {
    Diff {
        //差价付款
        override fun toString(): String {
            return "diff"
        }
    },
    Order {
        //单个订单付款
        override fun toString(): String {
            return "order"
        }
    },
    Trade {
        //单个订单付款
        override fun toString(): String {
            return "trade"
        }
    }
}
